package com.zyj.spring.annotationaop.model;

import com.zyj.spring.annotationaop.annatation.NeedSetValue;
import com.zyj.spring.annotationaop.dao.UserDao;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

@Data
@Builder
@ToString
public class Order implements Serializable {

    private Long id;

    private Long customerId;

    @NeedSetValue(beanName = UserDao.class, method = "selectOne", param = "customerId", targetField = "name")
    private String customerName;

}
